<div class="modal-header" id="scope">
	<h3 class="modal-title">资源分配</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label">任务编号：</label>
					<div class="col-sm-6">
						<input type="text" class="form-control" placeholder="任务编号" ng-model="param.data.taskNo" required ng-readonly="param.type=='update'"
						/>
					</div>
				</div>
				<div class="form-group" ng-show="!ts">
					<label class="col-sm-3 control-label">车辆资源：</label>
					<div class="col-sm-6">
						<ui-select ng-model="reslist.selected" theme="bootstrap">
							<ui-select-match placeholder="车辆资源">车辆编号：{{$select.selected.code}},车牌号：{{$select.selected.number}}</ui-select-match>
							<ui-select-choices repeat="res in reslist | propsFilter:{id: $select.search}">
								<span ng-bind-html="'车辆编号：'+res.code+',车牌号：'+res.number| highlight: $select.search"></span>
							</ui-select-choices>
						</ui-select>
					</div>
					<span class="input-group-btn">
							<button ng-click="reslist.selected = undefined"
								class="btn btn-default">
								<span class="glyphicon glyphicon-trash"></span>
					</button>
					</span>
				</div>
				<div class="form-group" style="color: red" ng-show="!ts">
					<label class="col-sm-3 control-label">提示：</label>
					<div class="col-sm-6" style="margin-top: 7px">
						<p style="color: red;">此处车辆资源为约租票池中与此任务线路相同的车辆资源，只有当资源状态为已激活，才会出现在列表中。</p>
					</div>
				</div>
				<div class="form-group" style="color: red" ng-show="ts">
					<label class="col-sm-3 control-label">注意：</label>
					<div class="col-sm-6" style="margin-top: 7px">
						{{ts}}
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
					<span style="color: red; text-align: center;" >* &nbsp</span>任务状态：
				</label>
					<div class="col-sm-6">
						<input type="text" class="form-control" placeholder="任务状态" ng-value="param.data.status | statusFilter" disabled="disabled" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
					<span style="color: red; text-align: center;" >* &nbsp</span>开始时间：
				</label>
					<div class="col-sm-6">
						<input type="text" class="form-control" placeholder="开始时间" ng-value="param.data.start | date: 'yyyy-MM-dd HH:mm:ss'" disabled="disabled"
						/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
					<span style="color: red; text-align: center;" >* &nbsp</span>预估结束时间：
				</label>
					<div class="col-sm-6">
						<input type="text" class="form-control" placeholder="预估结束时间" ng-value="param.data.end | date: 'yyyy-MM-dd HH:mm:ss'" disabled="disabled"
						/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>是否晚点：</label>
					<div class="col-sm-6" style="margin-top: 5px;">
						<label><input type="radio"  name="delayed" value="true"  ng-model="param.data.delayed"  ng-checked="param.data.delayed==true">是</label>
						<label style="margin-left: 50px"><input type="radio"  name="delayed"value="false"  ng-model="param.data.delayed" ng-checked="param.data.delayed==false">否</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">备注：</label>
					<div class="col-sm-6">
						<input type="text" class="form-control" placeholder="备注" ng-model="param.data.remark" />
					</div>
				</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>